home *** CD-ROM | disk | FTP | other *** search
- on setSelfUp
- global theFinishedPages
- set the text of cast "theOutput" to " "
- if listp(theFinishedPages) then
- if count(theFinishedPages) > 0 then
- set the text of cast "pageNum" to "1"
- set the text of field "theOutput" to getAt(theFinishedPages, 1)
- set the castNum of sprite 5 to 0
- set the castNum of sprite 4 to cast "nextPage"
- end if
- end if
- updateStage()
- end
-
- on checkButtons
- global theFinishedPages
- set the trace to 1
- if integerp(integer(the text of cast "pageNum")) then
- if integer(the text of cast "pageNum") <= 1 then
- set the castNum of sprite 5 to 0
- else
- set the castNum of sprite 5 to cast "previousPage"
- end if
- if integer(the text of cast "pageNum") >= count(theFinishedPages) then
- set the castNum of sprite 4 to 0
- else
- set the castNum of sprite 4 to cast "nextPage"
- end if
- else
- set the castNum of sprite 4 to 0
- set the castNum of sprite 5 to 0
- end if
- updateStage()
- set the trace to 0
- end
-